<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags" %>


 <c:import url="/view/include/header.jsp"/>
  <!-- end-->
  <div id="container_2">
    <dl class="top_img">
      <dd class="top_visuall_title">
        <p class="top_visuall_txt"><img src="/images/common/sub_titleimg_1.gif" alt="현대엘리베이터는 공정하고 투명한 기업문화 조성을 위해 상생의 경영방식을 추구합니다." width="497" height="64"/><a href="file:///C|/Users/ecg-youn/Downloads/noticeDetail.jsp"></a></p>
        <p class="top_visuall_txt_2"><img src="/images/common/sub_titleimg_2.gif" alt="" width="404" height="109"/></p>
      </dd>
    </dl>
    <div class="content"> 
      <!-- include start-->
      <s:if test="%{boardBean.board_code.equals('BD301')}"><c:import url="/view/include/ethicLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD302')}"><c:import url="/view/include/complianceLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD303')}"><c:import url="/view/include/fairTradeLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD304')}"><c:import url="/view/include/workLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD100')}"><c:import url="/view/include/noticeLeft.jsp"/></s:if>
      <!-- end-->
      <div class="sub_content">
        <dl class="ethic_title">
          <dd class="location"><img src="/images/common/home_img.gif" alt="집" width="15" height="15"/></dd>
          <dd class="location_txt">
          	<s:if test="%{boardBean.board_code.equals('BD301')}">HOME > 윤리경영 > 윤리경영 게시판</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD302')}">HOME > 준법지원 > 준법지원 게시판</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD303')}">HOME > 공정거래 > 공정거래 게시판</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD304')}">HOME > 업무지원 > 업무지원 게시판</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD100')}">HOME > 공지사항</s:if>
          </dd>
        </dl>
        <dl class="img_ethic_box">
         <dd class="img_ethic">
         	<s:if test="%{boardBean.board_code.equals('BD301')}"><img src="/images/ethic/ET_Archives.gif" alt="윤리경영 자료실" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD302')}"><img src="/images/compliance/CP_Archives.gif" alt="준법지원 자료실" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD303')}"><img src="/images/fairTrade/JT_Archives.gif" alt="공정거래 자료실" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD304')}"><img src="/images/work/SP_Archives.gif" alt="업무지원 자료실" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD100')}"><img src="/images/notic/notic.gif" alt="공지사항" width="166" height="23"/></s:if>
         </dd>
        </dl>
        <dl class="img_ethic_box_2">
          <dd class="img_ethic">
          	<s:if test="%{boardBean.board_code.equals('BD301')}"><!-- <img src="/images/ethic/ET_title_4.gif" alt="윤리경영 관한 각종 자료모음입니다." width="639" height="16"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD302')}"><!-- <img src="/images/compliance/CP_title_1.gif" alt="준법지원 관한 각종 자료모음입니다." width="639" height="16"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD303')}"><!-- <img src="/images/fairTrade/JT_title_3.gif" alt="공정거래 관한 각종 자료모음입니다." width="639" height="16"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD304')}"><!-- <img src="/images/work/SP_title_3.gif" alt="업무지원 관한 각종 자료모음입니다." width="639" height="16"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD100')}"><!-- <img src="/images/notic/notic_title.gif" alt="현대엘리베이터에 관한 여러가지 소식들을 알려 드립니다." width="460" height="16"/> --></s:if>
          </dd>
        </dl>
        <!-- 테이블 코딩-->
        <dl class="qna_box">
          <dd class="qna_Retrieval">
          <form id="searchForm" action="/board/boardList.hcom" method="post" enctype="multipart/form-data">
          	<input type="hidden" id="board_code" name="board_code"  value="${boardBean.board_code }"/>
          	<input type="hidden" id="currentPage" name="currentPage" value="${boardBean.currentPage }" />
            <select name="search" title="검색분류">
              <option value="all">전체</option>
              <option value="title">제목</option>
              <option value="content">내용</option>
            </select>
            <input type="text" style="width:180px;" name="searchKeyword"  title="검색어 입력"/>
            <input type="image" style="width:70px; height:25px; margin-left:3px;" id="btn_search" src="/images/common/btn_8.gif" alt="검색" />
          </form>
          </dd>
          <dd class="qna_box">
            <table cellspacing="0" cellpadding="0" summary="공지사항 목록" class="qna">
              <caption>게시판 목록</caption>
              <colgroup>
                <col width="10"/>
                <col width="65" />
                <col width="15"/>
                <col width="10"/>
              </colgroup>
              <thead>
                <tr>
                  <th class="gray_ff"><span class="f_white">번호</span></th>
                  <th class="gray_ff"><span class="f_white">제목</span></th>
                  <th class="gray_ff"><span class="f_white">작성일</span></th>
                  <th class="gray_ff"><span class="f_white">조회</span></th>
                </tr>
              </thead>
              <tbody>
              	<s:if test="%{1 > list.size()}">
              	<tr>
                    <td colspan="4">게시물이 없습니다.</td>
                <tr>
              	</s:if>
              	<s:iterator value="list" status="i">
                <tr>
                  <td><s:property value="boardBean.totalCount - #i.count+1" /></td>
                  <td class="veiw" >
                  	<a href="/board/boardDetail.hcom?board_seq=${board_seq }&board_code=${board_code}">
						<c:choose>
		                           		<c:when test="${title.length() > 30}">
		                           			<c:if test="${open_flag == 'Y'}">
		                           			<strong>${title.substring(0,30)}...</strong>
		                           			</c:if>
		                           			<c:if test="${open_flag != 'Y'}">
		                           			${title.substring(0,30)}...
		                           			</c:if>
		                           		</c:when>
		                           		<c:otherwise>
		                           			<c:if test="${open_flag == 'Y'}">
		                           			<strong>${title}</strong>
		                           			</c:if>
		                           			<c:if test="${open_flag != 'Y'}">
		                           			${title}
		                           			</c:if>
		                           		</c:otherwise>
		                           </c:choose>
					</a>
                  </td>
                  <td>
                  	<c:choose>
		            	<c:when test="${write_time.length() > 10}">${write_time.substring(0,10)}</c:when>
		            	<c:otherwise>${write_time}</c:otherwise>
		           	</c:choose>
                  </td>
                  <td>${read_count }</td>
                </tr>
                </s:iterator>
              </tbody>
            </table>
          </dd>
          <dd class="t_right"><a href="/board/boardRegForm.hcom?board_code=${boardBean.board_code }"><img src="/images/common/btn_3.gif" alt="글쓰기" width="70" height="25"/></a></dd>
          <dd class="t_right">&nbsp;</dd>
          <dd class="t_center"> 
            <!-- 페이징 -->
            <div class="paginate_complex center"> 
            	<s:property value="boardBean.pagingStr" escape="false"/>
            </div>
            <!--// 페이징 --> 
          </dd>
        </dl>
      </div>
    </div>
  </div>
  <!-- contanier end--> 
  <!-- footer start-->
<c:import url="/view/include/footer.jsp"/>
<!-- end--> 
<script type="text/javascript">
function movePage(page){
		$("#currentPage").val(page);
		/* alert($("#currentPage").val()); */
		location.href="/board/boardList.hcom?board_code="+$("#board_code").val()+"&currentPage="+$("#currentPage").val();
	}
</script>